﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    [Serializable]
    public class ChuyenBayDTO
    {
        #region Attributes
        private string maCB;

        private string maTB;

        private DateTime ngayGio;
        
        private int thoiGianBay;
        
        private int soLuongGheHang1;

        private int soLuongGheHang2;

        private int soghetrong;

        private int soghedat;

        private TuyenBayDTO tuyenBay;

        /*public string sanbayDi
        {
            get
            {
                return tuyenBay.SanBayDi;
            }
        }*/
        #endregion

        #region Properties
        public string MaCB
        {
            get { return maCB; }
            set { maCB = value; }
        }

        public string MaTB
        {
            get { return maTB; }
            set { maTB = value; }
        }

        public DateTime NgayGio
        {
            get { return ngayGio; }
            set { ngayGio = value; }
        }

        public int ThoiGianBay
        {
            get { return thoiGianBay; }
            set { thoiGianBay = value; }
        }

        public int SoLuongGheHang1
        {
            get { return soLuongGheHang1; }
            set { soLuongGheHang1 = value; }
        }

        public int SoLuongGheHang2
        {
            get { return soLuongGheHang2; }
            set { soLuongGheHang2 = value; }
        }

        public int SoGheTrong
        {
            get { return soghetrong; }
            set { soghetrong = value; }
        }

        public int SoGheDat
        {
            get { return soghedat; }
            set { soghedat = value; }
        }

        public TuyenBayDTO TuyenBay
        {
            get { return tuyenBay; }
            set { tuyenBay = value; }
        }
     
        public string SanbayDi
        {
            get { return tuyenBay.SanBayDi; }
           
        }
        
        public string sanbayDen
        {
            get
            {
                return tuyenBay.SanBayDen;
            }
        }
        #endregion
    }
}
